<template>
  <el-card>
    <div class="titFirst">
      <tabpane type="type">
        <div slot="nz"><Subscriber></Subscriber></div>
        <div slot="nj"><Tools></Tools></div>
      </tabpane>
    </div>
  </el-card>
</template>

<script>
import Subscriber from "@/components/subscriber/subscriber";
import Tools from "@/components/tools/tools";
import tabpane from "@/components/tab-pane/index";
// import PubSub from "pubsub-js";
export default {
  components: {
    Subscriber,
    Tools,
    tabpane
    // Material
  },
  data() {
    return {
      type: 0,
      title: "农资类型管理",
      activeName: "first",
      tabCard: [
        {
          value: 0,
          name: "农资"
        },
        {
          value: 1,
          name: "农具"
        }
      ]
    };
  },
  methods: {
    handleClick(tab) {
      if (tab.index == 0) {
        this.title = "农资类型管理";
      } else {
        this.title = "农具类型管理";
      }
    }
  }
};
</script>

<style scoped>
.allTop >>> .el-tabs__item .is-top .is-active {
  background: red;
}
.tbCard_0 {
  width: 100%;
  height: 800px;
  background: yellow;
}
.tbCard_1 {
  width: 100%;
  height: 800px;
  background: powderblue;
}
</style>
